#include "ti_msp_dl_config.h"
#include "Lib.h"
#include "Jy61p.h"
#include "Oled.h"
#include "Oled_Ui.h"
#include "Motor.h"
#include "Control.h"
int main(void)
{
    SYSCFG_DL_init();
    Jy61p_Init();
    OLED_Init();
    Encoder_init();
    Timer_init();
    DL_Timer_startCounter(TIMG0);
    DL_Timer_startCounter(TIMG6);
    Menu_Navigation();
    //Set_Pwm(1000,1000);
    while (1) 
    {
        OLED_ShowNumber(0, 0, Encoder.countr, OLED_FLOAT, 4, OLED_8X16);
        OLED_ShowNumber(0, 16, Encoder.countl, OLED_FLOAT, 4, OLED_8X16);
        OLED_Update();
    }
}
